<?php /* Smarty version Smarty-3.1.12, created on 2016-07-11 14:16:33
         compiled from "D:\phpStudy\WWW\demonew\template\default\model\relate.tpl" */ ?>
<?php /*%%SmartyHeaderCode:20967578339c14d4c13-22864644%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fa6753bd9979aee64ea05197d1158ddbcc54606f' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\demonew\\template\\default\\model\\relate.tpl',
      1 => 1406596914,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20967578339c14d4c13-22864644',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'relatedproduct' => 0,
    'volist' => 0,
    'relatednew' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_578339c150a446_23791713',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_578339c150a446_23791713')) {function content_578339c150a446_23791713($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include 'D:\\phpStudy\\WWW\\demonew\\source\\core\\plugins\\modifier.truncate.php';
?><!-- 相关产品和相关新闻 --> 
<div class="relate_list">
 <div class="relateproduct relate"><h4>相关产品：</h4>
    <div class="content">
     <ul id="relate_p" class="product_list clearfix">
	  <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['volist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['relatedproduct']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
$_smarty_tpl->tpl_vars['volist']->_loop = true;
?>
		<li>
			<a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['volist']->value['title'];?>
" class="img">
				<img src="<?php echo $_smarty_tpl->tpl_vars['volist']->value['thumbfiles'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['volist']->value['title'];?>
" width="120" height="96" />
			</a>
			<h3><a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['volist']->value['title'];?>
"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['volist']->value['title'],20);?>
</a></h3>
		</li>
	  <?php } ?>
     </ul>
    </div>
  </div>        
  <div class="relatenew relate"><h4>相关新闻：</h4>
    <div class="content">
    <ul id="relate_n" class="news_list clearfix">
  	<?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['volist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['relatednew']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
$_smarty_tpl->tpl_vars['volist']->_loop = true;
?>
  		<li><a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['volist']->value['title'];?>
"><?php echo $_smarty_tpl->tpl_vars['volist']->value['title'];?>
</a></li>
 	<?php } ?>
   </ul>
    </div>
  </div>	
</div><?php }} ?>